/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package tp2pdf.entity.dao;

import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import tp2pdf.entity.entity.Compte;

/**
 *
 * @author Alex
 */
@Stateless
public class CompteDao implements CompteDaoInterface {

    @PersistenceContext(unitName="EJBTP-ejbPU")
    private EntityManager em;

    @Override
    public void add(Compte compte) {
        em.persist(compte);
    }

}
